package com.linghu.lingmodeapplication.utils;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.linghu.lingmodeapplication.model.RequestData;

/**
 * author : LingHu
 * e-mail : 1714873054@qq.com
 * date   : 2023/11/2 6:24
 * desc   : json转换，用来转答案的
 * version: 1.0
 */
public class GsonUtil {
        public static String convertToJson(RequestData requestData) {
            Gson gson = new GsonBuilder().create();
            return gson.toJson(requestData);
        }
}
